package com.wfl.excel.demo.controller;


import com.wfl.excel.demo.service.IExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/excel")
public class ExcelController {

    @Autowired
    private IExcelService excelService;

    @RequestMapping("/import")
    public void importExcel(String path){
        excelService.importExcel(path);
    }

    @RequestMapping("/export")
    public void exportExcel(String path){
        excelService.exportExcel(path);
    }
}
